﻿
using System ;
using System.Windows.Forms ;

using MskEdit.Dxf.Model ;


namespace MskEdit.Dxf.Frontend
{

    public class DxfSectionTreeNode : TreeNode 
    {
        private DxfSection dxfSection_ ;
        
        
        private DxfSectionTreeNode( DxfSection dxfSection ) {
            dxfSection_ = dxfSection ;
            this.Text = dxfSection.EntityType ;
        }
        
        public static DxfSectionTreeNode TryFrom( DxfSection dxfSection, DxfSectionTreeNode fallbackValue ) {
            return new DxfSectionTreeNode( dxfSection ) ;
        }
    }
}
